#ifndef RS485_HPP
#define RS485_HPP
#include "uart.hpp"
#include "gpio.hpp"
///> 485 封装类
namespace device
{
	class rs485:public uart
	{
		private:
			gpio::GpioPinTPDF mGpioPin;
		protected:
			virtual void DataSent(void);
		public:
			rs485(UartInstanceTPDF tInstance, uint8_t *ucSendBuff, uint8_t *ucRecBuff, uint16_t usBuffLen, gpio::GpioPinTPDF *tGpioPin);
			virtual bool Write(uint8_t *ucData, uint16_t usDataLen);
			virtual bool Write(uint8_t *ucCmd, uint16_t usCmdLen, uint8_t *ucData, uint16_t usDataLen);
	};
}

#endif
